.bh-switch {
    margin: 0;
    padding: 0;
    color: #000000d9;
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5715;
    list-style: none;
    font-feature-settings: "tnum";
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    min-width: 44px;
    height: 22px;
    line-height: 22px;
    vertical-align: middle;
    background-color: #00000040;
    border: 0;
    border-radius: 100px;
    cursor: pointer;
    transition: all .2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.bh-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    transition: all .2s ease-in-out;
}
.bh-switch-handle:before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 4px #00230b33;
    transition: all .2s ease-in-out;
    content: "";
}
.bh-switch-inner {
    display: block;
    margin: 0 7px 0 25px;
    color: #fff;
    font-size: 12px;
    transition: margin .2s;
}
/*选中样式*/
.bh-switch-checked {
    background-color: #1890ff;
}
.bh-switch-checked .bh-switch-handle {
    left: calc(100% - 18px - 2px);
}
.bh-switch-checked .bh-switch-inner {
    margin: 0 25px 0 7px;
}

.bh-switch-loading, .bh-switch-disabled {
    cursor: not-allowed;
    opacity: .4;
}
.bh-switch-small {
    min-width: 28px;
    height: 16px;
    line-height: 16px;
}
.bh-switch-small .bh-switch-handle {
    width: 12px;
    height: 12px;
}
.bh-switch-small.bh-switch-checked .bh-switch-handle {
    left: calc(100% - 12px - 2px);
}
.bh-switch-loading-icon{
    position: relative;
    top: 2px;
    color: #000000a6;
    vertical-align: top;
    -webkit-animation: loadingCircle 1s infinite linear;
    animation: loadingCircle 1s infinite linear;
}
.bh-switch-small .bh-switch-loading-icon {
    top: 0px;
    font-size: 9px;
}
@keyframes loadingCircle {
    from { transform: rotate(0deg);}
    to { transform: rotate(360deg);}
}